<?php 

if(!isset($MAIN)){
	include_once("includes/class.ibnfm.php");
	$MAIN = new MAIN();
}
$MAIN->users->checkLogin(true);
function getTime() { 
    $timer = explode( ' ', microtime() ); 
    $timer = $timer[1] + $timer[0]; 
    return $timer; 
}
?>
<h2>USERS Class</h2>
<?php
$start = getTime();
$user = $MAIN->users->getUser(-1);
$end = getTime(); 
?>
<div class="explandable">
	<div onclick="this.getParent().getElement('pre').slide('toggle');"><b>users->getUser(-1)</b>: <?php echo round($end - $start,4);?> seconds</div>
	<pre class="h"><?php print_r($user);?></pre>
</div>
<?php
$start = getTime();
$users = $MAIN->users->getUsers();
$end = getTime(); 
?>
<div class="explandable">
	<div onclick="this.getParent().getElement('pre').slide('toggle');"><b>users->getUsers()</b>: <?php echo round($end - $start,4);?> seconds</div>
	<pre class="h"><?php print_r($users);?></pre>
</div>
<script type="text/javascript">
	var pres= document.getElements('pre');
	pres.slide('hide');
</script>